package com.warren.web.dao.common;

import java.io.Serializable;
import java.util.List;

import com.warren.web.entity.BaseEntity;

public interface BaseDao<Entity extends BaseEntity, PK extends Serializable> {

	public PK save(Entity entity);
	
	public void update(Entity entity);
	
	public void delete(Entity entity);
	
	public void deleteById(PK pk);
	
	public Entity getById(PK pk);
	
	public long getRowCount(Object parameter);
	
	public List<Entity> getList(Object parameter);
	
	public List<Entity> getList(Object parameter, int currenSize, int pageSize);
	
}
